package userModule.controller;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;

@WebServlet(name = "RegisterPageServlet", value = "/registerPage")
public class RegisterPageServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        this.doPost(request, response);
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

//        response.sendRedirect("http://localhost:8080/library/jsp/register.jsp");
        request.getRequestDispatcher("/jsp/register.jsp").forward(request,response);

    }
}
